
public class BottomNum {//底层数字类
    void newNum() {//计算附近3*3地雷的数量
        for (int i = 1; i <=GameUtil.Width ; i++) {
            for (int j = 1; j <=GameUtil.Height ; j++) {
                if(GameUtil.ElementBottom[i][j]==-1){
                    for (int m = i-1; m <=i+1 ; m++) {
                        for (int n = j-1; n <=j+1 ; n++) {
                            if(GameUtil.ElementBottom[m][n]>=0){
                                GameUtil.ElementBottom[m][n]++;
                            }
                        }
                    }
                }
            }
        }
    }
}
